package cn.elead.chaos.framework.web.global;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 成功返回
 *
 * @author luopeng
 */
@Setter
@Getter
@ToString
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class SuccessResponse<T> extends ApiResponse<T> {

	private static final long serialVersionUID = 1L;
	/**
	 * http 状态码
	 */
	@Builder.Default
	private int code = 200;
	/**
	 * 结果集返回
	 */
	private T data;
}
